package com.kingboy.kbg.auth.config;

import com.kingboy.kbg.core.common.util.SpringUtil;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;

/**
 * 初始化open server 容器
 * Create By 郭金宝 on 2018/6/15.<br>
 */
@Component
public class AuthInitializer implements ApplicationContextAware {
    @Override
    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
        SpringUtil.setApplicationContext(applicationContext);
    }
}
